package com.mfp.java.testYou.ui.mvc;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mfp.java.testYou.core.AppContext;
import com.mfp.java.testYou.db.model.CompletedTest;

public class DetailedResultPage extends AbstractMVC {

	public static final String URL = "/testYou/pages/detailedResult.jsp";
	private List<CompletedTest> usersResultsList = AppContext.getDAO().getAllCompletedTests();

	public DetailedResultPage(HttpServletRequest request, HttpServletResponse response) {
		super(request, response);
		init();
	}

	private void init() {
		List<CompletedTest> list = AppContext.getDAO().getAllCompletedTests();
        usersResultsList = list;
	}

	public List<CompletedTest> getUsersResultsList() {
		return usersResultsList;
	}


}
